﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using AG.Editor.Core;

namespace AG.Editor.TextureFontUI.Windows
{
    public partial class AGCreateFontCharWindow : Form
    {
        public AGTextureFontChar FontChar { get; private set; }

        public AGCreateFontCharWindow()
        {
            InitializeComponent();
        }

        private void _ctlBtnCreate_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(_ctlEditName.Text.Trim()))
            {
                return;
            }

            FontChar = new AGTextureFontChar();
            FontChar.CharString = _ctlEditName.Text.Trim();

            DialogResult = System.Windows.Forms.DialogResult.OK;
        }
    }
}
